package tezhongbing;

import java.io.UnsupportedEncodingException;

public class EncodeTest {
	public static void main(String[] args) throws UnsupportedEncodingException {
		String str = "中国";
		byte[] bytes= str.getBytes("GBK");
		for (int i = 0; i < bytes.length; i++) {
			System.out.print(Integer.toBinaryString(bytes[i] & 0xff));
		}
	}
}
